<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbviatmontEditDlg" widgetVar="PyfntbviatmontEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditPyfntbviatmontTitle}">

            <h:form id="PyfntbviatmontEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{pyfntbviatmontController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditPyfntbviatmontLabel_pyfntbviatmontid}" for="pyfntbviatmontid" />
                        <h:outputText id="pyfntbviatmontid" value="#{pyfntbviatmontController.selected.pyfntbviatmontid}" />

                        <p:outputLabel value="#{myBundle.EditPyfntbviatmontLabel_valormes}" for="valormes" />
                        <p:inputText id="valormes" value="#{pyfntbviatmontController.selected.valormes}" title="#{myBundle.EditPyfntbviatmontTitle_valormes}" required="true" requiredMessage="#{myBundle.EditPyfntbviatmontRequiredMessage_valormes}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbviatmontLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbviatmontController.selected.fecharegistro}" title="#{myBundle.EditPyfntbviatmontTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPyfntbviatmontRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbviatmontLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyfntbviatmontController.selected.observaciones}" title="#{myBundle.EditPyfntbviatmontTitle_observaciones}" />

                        <p:outputLabel value="#{myBundle.EditPyfntbviatmontLabel_pyfntbreqviaticoid}" for="pyfntbreqviaticoid" />
                        <p:selectOneMenu id="pyfntbreqviaticoid" value="#{pyfntbviatmontController.selected.pyfntbreqviaticoid}" required="true" requiredMessage="#{myBundle.EditPyfntbviatmontRequiredMessage_pyfntbreqviaticoid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbreqviaticoController.items}"
                                           var="pyfntbreqviaticoidItem"
                                           itemValue="#{pyfntbreqviaticoidItem}"
                                           itemLabel="#{pyfntbreqviaticoidItem.pyfntbreqviaticoid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbreqviaticoConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditPyfntbviatmontLabel_pyfntbmesesid}" for="pyfntbmesesid" />
                        <p:selectOneMenu id="pyfntbmesesid" value="#{pyfntbviatmontController.selected.pyfntbmesesid}" required="true" requiredMessage="#{myBundle.EditPyfntbviatmontRequiredMessage_pyfntbmesesid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbmesesController.items}"
                                           var="pyfntbmesesidItem"
                                           itemValue="#{pyfntbmesesidItem}"
                                           itemLabel="#{pyfntbmesesidItem.pyfntbmesesid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbmesesConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbviatmontController.save}" value="#{myBundle.Save}" update="display,:PyfntbviatmontListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbviatmontEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbviatmontEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
